﻿@model Forum.ViewModels.FullForumPostViewModel

@{
    ViewBag.Title = Model.Title;
}

<h2>@ViewBag.Title</h2>

@Html.Raw(Model.Content)

@foreach (var answer in Model.Answers)
{
    <hr/>
        <p>
          @Html.Raw(answer.Content);
        </p>
}

@using (Html.BeginForm("DoAnswer", "ForumPosts"))
{ 
    <fieldset>
        <legend>Answer</legend>
        @Html.Hidden("ForumPOstId", Model.Id)
        @Html.Kendo().Editor().Name("Content").HtmlAttributes(new { col = 50 })
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}